package com.itheima.controller;

import com.itheima.pojo.PageBean;
import com.itheima.pojo.Result;
import com.itheima.pojo.logPageBean;
import com.itheima.service.operateLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
@Slf4j
public class operateLogController {
    @Autowired
    private operateLogService logService;

    @GetMapping
    public Result getOperateLog(logPageBean logPageBean) {
        log.info("分页查询条件:{}", logPageBean);
        PageBean pageBean = logService.getoperateLog(logPageBean);
        return Result.success(pageBean);
    }


}
